package com.yadang.springcloud.service.impl;

import com.yadang.springcloud.dao.PaymentDao;
import com.yadang.springcloud.entities.Payment;
import com.yadang.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: 亚当
 * @date: 2022年08月21日 21:28
 * @package: com.yadang.springcloud.service.impl
 * @Description: TODO
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        int i = paymentDao.create(payment);
        return i;
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
